def max_sub_array_of_size_k(k, arr):
  max_sum = 0
  for i in range(len(arr)-k+1):
    _sum = 0
    for j in range(i,i+k):
      _sum += arr[j]
      #print(str(j)+"："+str(_sum))
    if(_sum>max_sum):
      max_sum = _sum
  # TODO: Write your code here
  return max_sum

def main():
  max_sum = max_sub_array_of_size_k(3,[2, 1, 5, 1, 3, 2])
  print("output:"+str(max_sum))

main()